import vue from '@vitejs/plugin-vue'
import createComponents from './components'
import createIcons from './icons'
import createCompression from './compression'
import createAutoImport from './auto-import'

export default (viteEnv) => {
  const vitePlusgins = []
  vitePlusgins.push(vue())
  // vitePlusgins.push(createUnoCss())
  vitePlusgins.push(createAutoImport())
  vitePlusgins.push(createComponents())
  vitePlusgins.push(createIcons())
  vitePlusgins.push(createCompression(viteEnv))
  return vitePlusgins
}
